from primes import erastothenes

limit = 2000000
print sum(erastothenes(limit))